package com.weishuang.monitor.leader.commons.tree;

import java.util.List;
import java.util.function.Function;

@FunctionalInterface
public interface TreeFunction<T> {

    List<T> buildTree(List<T> list);

    default Function<? super T,String> getIdColumn(){
        return null;
    }

    default Function<? super T,String> getParentColumn(){
        return null;
    }

    default Function<? super T,Boolean> getCheckedColumn(){
        return null;
    }

    default Function<? super T,List> getChildrenAction(){
        return null;
    }

}
